#include <stdlib.h>
#include "babl/babl.h"
-#ifdef _WIN32
-#define setenv(a,b,c) putenv((a),(b))
-#endif
-
int main (int argc, char **argv)
{
if (argc != 3)
fprintf (stderr, "need two args, from and to babl-formats\n");
return -1;
}
- setenv ("BABL_DEBUG_CONVERSIONS", "1", 0);
- setenv ("BABL_TOLERANCE", "100000.0", 0);
+ putenv ("BABL_DEBUG_CONVERSIONS" "=" "1");
+ putenv ("BABL_TOLERANCE" "=" "100000.0");
babl_init ();
babl_fish (babl_format(argv[1]), babl_format (argv[2]));
babl_exit ();